# -*- encoding: utf-8 -*-
from django.contrib.syndication.feeds import Feed
from wagglyblog.models import Post

class BlogFeed(Feed):
    title = ""
    link = ""
    description = ""

    def items(self):
        return Post.published.all()[:10]

    def item_pubdate(self, item):
        return item.pub_date

#    def item_author_name(self, item):
#        return item.autor.get_full_name

#    def item_author_email(self, item):
#        return ""
